﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<CruzDelSur.Models.FlotaCargasModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
Editar Flota Carga
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ModuleTitleContent" runat="server">
Recursos / Flota Carga
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ContentMenuSecundario" runat="server">
<% Html.RenderPartial("Servicios/MenuPrincipal"); %>
</asp:Content>

<asp:Content ID="Content5" ContentPlaceHolderID="MainContent" runat="server">
<% Html.RenderPartial("Servicios/MenuSecundarioRecursos", new { Action = "Carga" });%>
<ul class="tabs secondary">
 <li><a href="<%:Url.Action("Carga", "ServiciosRecursos") %>" class="">Listar</a></li>
 <li><a href="<%:Url.Action("ActualizarFlotaCarga", "ServiciosRecursos") %>" class="active">Crear</a></li>
</ul>
    <h2 style="font-size: medium">Crear / Modificar Flota Carga</h2>
    <%: Html.ValidationSummary(true)%>
    <% using (Html.BeginForm())
        {%>  
    <div class="span-12" 
         style="font-family: Arial, Helvetica, sans-serif; font-size: small">
    <p align="right">
     <p>
        <label>Código</label> <%: Html.TextBoxFor(model => model.FlotaCarga.Codigo) %> <br />
        <label>Vehiculo</label>  <%: Html.DropDownListFor(model=>model.FlotaCarga.Vehiculo.Codigo, Model.Vehiculos) %> <br />
        <label>Alto de Bodega</label> <%: Html.TextBoxFor(model => model.FlotaCarga.AltoBodega) %> <br />
        <label>Ancho de Bodega</label> <%: Html.TextBoxFor(model => model.FlotaCarga.AnchoBodega) %> <br />
        <label>Largo de Bodega</label> <%: Html.TextBoxFor(model => model.FlotaCarga.LargoBodega) %> <br />
     </p>
    </div>
    <div class="span-8" 
         style="font-family: Arial, Helvetica, sans-serif; font-size: small" 
         align="right">
    <p style="width: 310px">
        <label>Tara de vehiculo</label> <%: Html.TextBoxFor(model => model.FlotaCarga.Tara) %> <br />
        <label>Volumen de Bodega</label> <%: Html.TextBoxFor(model => model.FlotaCarga.VolumenBodega) %> <br />
        <label>Estado</label>&nbsp;<%: Html.TextBoxFor(model => model.FlotaCarga.Estado) %>
     </p>
    </div>
    <div class="span-24" id="toolbar">
<input type="submit" value="Grabar" /> <input type="button" value="Cancelar" onclick="location='/ServiciosRecursos/Carga'" />
</div>
<% } %>
   <script language="javascript" type="text/javascript">
       function show() {
           document.getElementById("tr-hide").style.display = "";
       }
       function hide() {
           document.getElementById("tr-hide").style.display = "none";
       }
       function focusServicio(e) {
           e.className = "span-6";
       }
       function blurServicio(e) {
           e.className = "span-2";
       }
</script>
</asp:Content>
